package top.kaoshanji.p1ch08a;

/**
 * 代码清单-p1ch08a-170页b：继承、构造器和参数
 * IDEA 会提示
 * author kaoshanji
 * ^_^
 * create time 2025/3/9 15:45
 */
public class Chess extends BoardGame {

    public Chess() {
        super(11);
        System.out.println("Chess constructor");
    }

    public static void main(String[] args) {
        new Chess();
    }

}

class Game {
    Game(int i) {
        System.out.println("Game constructor");
    }
}

class BoardGame extends Game {

    public BoardGame(int i) {
        super(i);
        System.out.println("BoardGame constructor");
    }
}


